package dao.v2;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import model.DicVO;
import model.FileVO;
import model.LogOrder;
import model.LogOrderBack;
import model.OrderBackItemVO;
import model.OrderBackVO;
import model.OrderGoodVO;
import model.OrderVO;
import model.SeqVO;

public interface ApplyReturnVOMapper {
	 List<OrderGoodVO> getOrderGoodByOrderId(String order_id);
	 
	 OrderGoodVO getOrderGoodById(String id);
	 
	 void InsertOrderBack(OrderBackVO orderBack);
	 
	 void InsertOrderBackItem(OrderBackItemVO orderBackItem);
	 
	 void getSeq(SeqVO seq);
	 
	 void addFile(FileVO fileVO);
	 
	 void addFileFolder(@Param("folder_id")String folder_id,@Param("fileId")String fileId);
	 
	 void deleteLogOrderByOrderId(@Param("order_id")String order_id,@Param("type")String type);
	 
	 String getAddressTelByOrderId(String order_id);
	 
	 String getAddressNameByOrderId(String order_id);
	
	 String getAddressContentByOrderId(String order_id);
	
	 OrderBackVO getOrderBackByOrderId(String order_back_id);
	 
	 List<FileVO>  getFileByFolderId(String folder_id);
	 
	 List<LogOrder> getLogOrderByOrderId(String order_id);
	 
	 int judgeOrderBackState(@Param("order_back_id")String order_back_id,@Param("state")String state);
	 
	 void addOrderLog(LogOrder log);
	 
	 void addLogOrderBack(LogOrderBack logOrderBack);
	 
	 List<LogOrderBack>  getLogOrderBackByOrderBackId(String order_back_id);
	 
	 void updOrderState(@Param("order_id")String order_id,@Param("order_state")String order_state);
	 
	 int updOrderStateFaster(@Param("order_id")String order_id,@Param("order_state")String order_state,@Param("new_order_state")String new_order_state);
	 
	 int updOrderBackState(@Param("order_back_id")String order_back_id,@Param("order_back_state")String order_back_state);
	 
	 List<OrderBackItemVO> getOrderBackItem(String order_back_id);
	 
	 OrderGoodVO getGoodOrderById(String id);
	 
	 List<DicVO> getDicByParentId(String parent_id);
	 
	 void updOrderBackEms(@Param("order_back_id")String order_back_id, @Param("ems_id")String ems_id, @Param("ems_no")String ems_no);
	 
	 OrderVO getOrderByOrderId(String order_id);
	 
	 String getCreateTimeByOrderId(String order_id);
	 
	 OrderBackVO getOrderBackLogMsg(String order_back_id);
	 
	 String getImgByGoodId(String good_id);
	 
	 String getStateByOrderId(String order_id);
	 
	 String getOrderNo(String order_id);
}
